package iqq.core;

import iqq.client.LoginWork;
import iqq.entity.User;
import iqq.event.LoginListener;

/**
 * 
 * 
 * @author chenzhihui
 * @email chengnuo128@gmail.com
 */
public class BasicMessenger extends AbstractMessenger{
	
	private User owner;
	private LoginWork loginWork;
	public LoginListener loginListener;
	
	public BasicMessenger(String account, String password) {
		owner = new User();
		owner.setAccount(account);
		owner.setPassword(password);
	}
	
	/* (non-Javadoc)
	 * @see iqq.core.Messenger#login()
	 */
	@Override
	public void login() {
		loginWork = new LoginWork();
	}

	/* (non-Javadoc)
	 * @see iqq.core.Messenger#logout()
	 */
	@Override
	public void logout() {
		
	}

	/* (non-Javadoc)
	 * @see iqq.core.Messenger#addLoginListener(iqq.event.LoginListener)
	 */
	@Override
	public void addLoginListener(LoginListener loginListener) {
		
	}
	
	/* (non-Javadoc)
	 * @see iqq.core.Messenger#getOwner()
	 */
	@Override
	public User getOwner() {
		return this.owner;
	}
	
}
